import NProgress from "nprogress";
import "nprogress/nprogress.css";
import React from "react";

class TopLoading extends React.Component {
  componentDidMount() {
    NProgress.start();
  }

  componentWillUnmount() {
    NProgress.done();
  }
  render() {
    return null;
  }
}

export default TopLoading;
